; ---------------------------------------------------------------------------- ; This is an example of an script file which can be executed by HostMonitor. ; ---------------------------------------------------------------------------- ; ; Comments: ; The program ignores all strings with a semicolon as the 1st character. ; ; Commands: commands are case insensitive ; Parameters: parameters are case sensitive ; ---------------------------------------------------------------------------- ; -- New in version version 3.0 -- SetCurrentFolder Root IncludeSubfolders yes ; SetCurrentFolder <name of folder>|<full path> ; - by default, HostMonitor uses the top folder ; IncludeSubfolders yes|no ; - by default, HostMonitor works with the specified folder and all descendant subfolders ; As of version 3.0, HostMonitor now supports macro variables (%TestName%, ; %Comment%, %Folder%, etc.) ; Please note: ; - if script is launched as a result of a test performance, the test's parameters ; are used for macros; ; - if script is launched manually (using menu File->Execute Script), parameters of the ; selected test are used for the macros (if no test is selected, macros are not translated) ; -- Command for working with test lists -- ; Warning: HostMonitor doesn't save changes to test lists made by script. ; To save a list, use SaveHostList command. NewTestList LoadTestList c:\list1.hml AppendTestList c:\list2.hml ImportFromFile c:\import1.txt SkipDuplicates WriteLog SaveTestList c:\list3.hml ; -- Commands for generating reports -- ;HTMLReport c:\rep01.html ;DBFReport c:\rep02.dbf ;WMLReport_AllBig c:\filename1.wml ;WMLReport_AllSmall c:\filename2.wml ;WMLReport_DeadBig c:\filename3.wml ;WMLReport_DeadSmall c:\filename4.wml ; In version 3.0 all these commands have been replaced with a single command: CreateReport "report profile name" c:\fullrep.html ; -- manipulation with tests -- ; when HostMonitor execute script it can modify current list but doesn't save ; changes to file until command SaveTestList RefreshAll DisableAllTests EnableAllTests ; The following four commands require TestName as a parameter. ; Remember, all parameters are case sensitive DisableTest www.microsoft.com EnableTest www.altavista.com RefreshTest www.borland.com ; instead specific TestName you can use follow group names ; (remember, parameters are case sensitive): ; _AllPing ; _AllTCP ; _AllURL ; _AllUNC ; _AllFreeSpace ; _AllFolderSize ; _AllFileExists ; _AllFileContents ; _AllProcess ; _AllService ; _AllNTLog ; _AllCPU ; _AllInterbase ; _AllMsSQL ; _AllMySQL ; _AllOracle ; _AllPostgre ; _AllSybase ; _AllSNMP ; _AllExternalPrg ; _AllDLL ; _AllODBC ; _AllSMTP ; _AllPOP3 ; _AllIMAP ; _AllDNS ; _AllLDAP ; _AllTrace ; _AllCountFiles DisableTest _AllTCP EnableTest _AllPing RefreshTest _AllURL SetTestParam _AllPing Timeout 4000 SetTestParam "CPU \\server1" UserName testuser1 SetTestParam "CPU \\server1" Password my long secret password ; -- other -- StartProgram c:\generator.exe c:\database.dbf c:\newtest.txt StopMonitor StartMonitor ;QuitMonitor ; ----------------------------------------------------------------------------